﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Markdown
{
    /// <summary>
    /// 表示AML文档的文本内容节点
    /// </summary>
    internal sealed class AMLTextNode:AMLParseNode
    {
        public AMLTextNode(AMLParseNode parent, int offset, int length, string document) :
            base(parent, AMLNodeType.Text, offset, length, document, 0, 0, offset, length)
        {

        }

        /// <summary>
        /// 获取与当前对象等价的字符串形式
        /// </summary>
        /// <returns>返回与当前对象等价的字符串形式</returns>
        public override string ToString()
        {
            return Content;
        }
    }
}
